<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        let el = console.log;
        let et = console.table;
        let arr = [1, 1, 2, 3]
        et(arr) //Array(4)

        // Set类型
        let set = new Set()
        el(set) //[[entries]]
        set.add(1)
        set.add('1')
        el(set) //Set(2) {1, '1'}
        el(set.size) //size属性

        //字面量
        let set1 = new Set([1, 2, 3])
        set1.forEach(function (value, key) {
            el(value)
        })


        // Objetc对比分析
        let obj = {   //在对象里面键名会转为字符串 
            1:'dushenyan',
            "1":'jiajia'
        }
        let obj2 = {
            [obj]:'杜审言'
        }
        el(obj2)
        el(obj2[obj.toString()])   //打印看的更加清楚
        el(obj2['[object Object]'])   
    </script>
</head>

<body>

</body>

</html>